package engine.config;

public class Config
{
    
    private String fileName;
    private ConfigReader cfgReader;
    
    public Config(String filename)
    {
        this.fileName = filename;
        this.cfgReader = new ConfigReader(filename);
    }
    
    public boolean getBool(String name)
    {
        return this.cfgReader.readBool(name);
    }
    
    public int getInt(String name)
    {
        return this.cfgReader.readInt(name);
    }
    
    public float getFloat(String name)
    {
        return this.cfgReader.readFloat(name);
    }
    
    public String getStr(String name)
    {
        return this.cfgReader.readStr(name);
    }
    
    public String getFileName()
    {
        return this.fileName;
    }
    
    public void destroy()
    {
        this.cfgReader.closeRead();
        this.cfgReader = null;
    }
    
}
